<template>
  <div class="main_bg">
    <div class="content_box">
      <div class="gohome">
        <div class="item to_home" @click="gohome">首页</div>
        <div class="item to_back" @click="goback">返回</div>
      </div>
      <div class="menu_list">
        <slot name="menu_list"></slot>
      </div>
      <div class="inner_box">
        <div class="inner_box_main">
          <div class="title">{{catname}}</div>
          <div class="inner_content">
            <slot name="inner_content"></slot>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>

<script>
  export default {
    name: "mainContent-back",
    props:{
      catname:{
        type:String,
        default:"标题"
      }
    },

    methods: {
      goback() {
        this.$router.go(-1);
      },
      gohome(){
        // console.log('点击率返回首页按钮！');
        this.$router.push("/index");
      },//返回到首页
    }
  }
</script>

<style scoped>

  .main_bg {
    position: relative;
    padding-top: 60px;
  }

  .content_box {
    position: relative;
    width: 1713px;
    height: 830px;
    padding: 23px;
    margin: 0 auto;
    background: rgba(255, 255, 255, .5);
    /*background: url(../../assets/images/banner/opacity.png);*/
  }

  .inner_box {
    padding: 23px;
    /*margin: 23px;*/
    background-color: #fff;
  }

  .inner_box_main {
    width: 1624px;
    height: 746px;
    position: relative;
    background: #fff url('../../assets/images/page/line_bg.png') no-repeat;
  }

  .menu_list{
    z-index: 999;
    position: absolute;
    top: 105px;
    right: 44px;
  }

  .inner_box_main .title {
    position: absolute;
    left: 50%;
    top: -28px;
    margin-left: -118px;
    width: 236px;
    height: 56px;
    line-height: 50px;
    text-align: center;
    font-size: 36px;
    color: #02c070;
    background: #d7ece3;
    border: 2px solid #02c070;
    border-radius: 8px;
  }

  .inner_content {
    /*color:#6c6c6c;*/
  }

  .gohome {
    bottom: 20px;
    left: 30px;
    position: absolute;
    z-index: 101;
  }

  .gohome .item {
    display: inline-block;
    width: 90px;
    height: 90px;
    cursor: pointer;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
  }

  .to_home {
    background: url("../../assets/images/page/home.png") no-repeat;
  }

  .to_back {
    background: url("../../assets/images/page/back.png") no-repeat;
  }


</style>
